package com.icarsaas.saas.tenant.config.properties;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Jpa hibenate 实现配置
 * @author admin
 */
@Data
@Component
@ConfigurationProperties
public class MyProperties {
	
	@Value("${spring.jpa.hibernate.ddl-auto}")
	private String ddlAuto;//是否创建ddl
	// 命名策略
	@Value("${spring.jpa.hibernate.naming.implicit-strategy}")
	private String implicitStrategy;
	@Value("${spring.jpa.hibernate.naming.physical-strategy}")
	private String physicalStrategy;
	
	@Value("${spring.jpa.properties.hibernate.show_sql}")
	private boolean showSql;//是否显示sql
	@Value("${spring.jpa.properties.hibernate.dialect}")
	private String dialect;//是否创建ddl
	@Value("${spring.jpa.properties.hibernate.format_sql}")
	private boolean formatSql;//是否格式化sql
	//servelet
	@Value("${server.servlet.context-path}")
	private String contextPath;//是否创建ddl
   
}
